package cn.yh.register.hosp.repository;

import cn.yh.register.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;


public interface HospitalRepository extends MongoRepository<Hospital,String> {

    //

    /**
     * 根据医院编号查询医院信息
     * @param hoscode
     * @return
     */
    Hospital findByHoscode(String  hoscode);

    //根据医院名字模糊查询
    List<Hospital> findByHosnameLike(String hosname);
}
